/**
 * Created by xuchaosheng on 16/5/22.
 */
main.controller('pageCtrl', ["$scope", "$rootScope", "$routeParams", "tools", function ($scope, $rootScope, $routeParams, tools) {
    tools.post({
        url: '/Ibm-Client/getPageByPageId.htm',
        data: {
            pageId: $routeParams.id
        },
        succ: function (resp) {
            if (resp.success) {
                if (resp.value.pageObject.jsonObject) {
                    $scope.$broadcast('PAGE_JSON_EV', resp.value.pageObject.jsonObject.core);
                }
            }
        }
    });
}]);